package com.haois.mp.database.commom.properties;

import com.alibaba.druid.pool.DruidDataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * description
 *
 * @author sawyerlsy
 * @date 2018-10-11
 * @since
 */
public class EncryptionDruidDataSource extends DruidDataSource {

    private Logger logger = LoggerFactory.getLogger(EncryptionDruidDataSource.class);

    @Override
    public void setPassword(String password) {
        //TODO: 对密码进行额外处理
        logger.info("根据加密方式对password进行解密...");
        super.setPassword(password);
    }

    @Override
    public void setName(String name) {
        //TODO: 对用户名进行额外处理
        logger.info("根据加密方式对username进行解密...");
        super.setName(name);
    }
}
